package com.example.rental.mapper;

import com.example.rental.entity.Admin;
import com.example.rental.entity.dto.AdminDto;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AdminMapper {
    public Admin selectByPhoneAndPwd(String phone,String password);
    public Integer addAmin(String rphone,String rpassword);

    public Admin findByPhone(String phone);
    public List<Admin> searchAdmin(AdminDto adminDto);
    public void updateAdmin(Admin admin);
}
